
package com.kweative.lingua.demo.model;

import com.kweative.type.ICanDoNode;
import com.kweative.type.Node;
import com.kweative.type.Node.Type;
import java.io.Serializable;

/**
 *
 * @author henrik
 */
public class UserModel implements ICanDoNode,Serializable {
    private String username;
    private String password;

    public UserModel(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    public Node toNode() {
        Node node = new Node("user",Type.NAMEVALUE);
        node.setValue(username);
        return node;
    }
}
